package com.gopay.common.domain.dis;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商户每日收款Domain
 * Created by Light on 2016/11/11.
 */
@Entity
@Table(name="DIS_MER_DAILY_RECEIVE")
public class DisMerDailyReceive extends BaseEntity {

    @Id
    @Column(name="ID")
    private Integer id;

    @Column(name="CUST_ID", length=10)
    private String custId;

    @Column(name="TRANS_AMT", precision=20 , scale = 2)
    private BigDecimal transAmt;

    @Column(name="IS_DEAL", length=1)
    private String isDeal;

    @Column(name="CREATE_DT")
    private Date createDt;

    @Column(name="FLAG")
    private String flag;

    @Version
    @Column(name="VERSION")
    private Integer version;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public BigDecimal getTransAmt() {
        return transAmt;
    }

    public void setTransAmt(BigDecimal transAmt) {
        this.transAmt = transAmt;
    }

    public String getIsDeal() {
        return isDeal;
    }

    public void setIsDeal(String isDeal) {
        this.isDeal = isDeal;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
